<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div class="span12 box-content">
	<div class="span12">共有${projectCount}条数据,${totalPage }页</div>
	<table class="table table-striped table-bordered" id="project_auth_list_table">
		<thead>
		 <tr role="row">
		 	<th></th>
		 	<th>题目名称</th>
		 	<th>题目描述</th>
		 	<th>发布时间</th>
		 	<th>适用专业方向</th>
		 	<th>指导教师</th>
		 	<th>评阅人</th>
		 	<th style="width: 11%;">该指导教师已通过的题目数量</th>
		 	<th>操作</th>
		 </tr>
		</thead>   
		<tbody>
		<c:forEach items="${projectC }" var="pc">
			<tr>
				<td><input type="checkbox" name="choose" value="${pc.prj.id }"  /></td>
				<td>${pc.prj.name }</td>
				<td><button type="button" class="btn btn-info project_auth_desc_show"  data-target="#project_auth_description_box" data-toggle="modal">点击查看<div style="display: none" class="description_div">${pc.prj.description }</div></button> </td>
				<td><fmt:formatDate value="${pc.prj.publish_date }" pattern="yyyy-MM-dd HH:mm"/> </td>
				<td><c:forEach items="${pc.prj.profs }" var="pp">${pp.branch.name } </c:forEach></td>
				<td>${pc.prj.teacher.name }</td>
				<td>${pc.prj.shengyue_teacher.name}</td>
				<td>0 </td>
				<td>
					<button type="button" class="btn btn-success project_auth_pass" >
						<i class="icon-ok-sign icon-white"></i>  
						审核通过
					</button>
					<button type="button" class="btn project_auth_fail" data-target="#project_auth_fail_reason_box" data-toggle="modal">
						<i class="icon-remove-sign"></i>  
						审核不通过
					</button>
				</td>
			</tr> 
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination  pagination-centered"
			data-totalPage="${totalPage }" 
			data-currentPage="${page }" 
			data-url="<%=basePath%>admin/project/showProjectAuth/{page}"
			style="display:none">
	</div>
	<div class="well">
		<button type="button" class="btn btn-primary" id="project_auth_select_all" >
			<i class="icon-plus-sign icon-white"></i>  
			全选
		</button>
		<button type="button" class="btn btn-primary " id="project_auth_select_no" >
			<i class="icon-minus-sign icon-white"></i>  
			全不选
		</button>
		<button type="button" class="btn btn-success" id="project_auth_muti_pass" >
			<i class="icon-ok-sign icon-white"></i>  
			批量审核通过
		</button>
	</div>
</div>
<!-- 显示描述 开始-->
<div class="modal hide fade" id="project_auth_description_box">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal">×</button>
		<h3>题目描述</h3>
	</div>
	<div class="modal-body">
	</div>
	<div class="modal-footer">
		<a href="#" class="btn" data-dismiss="modal">关闭</a>
	</div>
</div>
<!-- 显示描述 结束 -->
<!-- 审核不通过 开始-->
<div class="modal hide fade" id="project_auth_fail_reason_box">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal">×</button>
		<h3>请输入审核不通过原因</h3>
	</div>
	<div class="modal-body">
		<div id="project_auth_fail_reason_box_alert_container" ></div><br/>
		<input type="hidden" name="prjId"/>
		<textarea name="fail_reason" class="autogrow" style="width:98%"> </textarea>
	</div>
	<div class="modal-footer">
		<a href="#" class="btn" data-dismiss="modal">关闭</a>
		<a href="#" class="btn btn-primary" id="project_auth_fail_reason_box_confirm">确定</a>
	</div>
</div>
<!--  审核不通过  结束 -->